<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>出库打印</title>
<style media="print">
	.menu{display:none;}
	.list td,.list th{ height:26px; line-height:26px; text-align:center;}
	.list th{ font-weight:bold;}
    .pageContent{
      width: 1075px;
      height: 1567px;
      border: 1px #000 solid;
      overflow: hidden;
      padding: 0;
      word-break:break-all;
    }
    .a4-broadwise{
      width: 1569px;
      height: 1073px;
      border: 1px #000 solid;
      overflow: hidden;
      padding: 0;
      word-break:break-all;
    }
    .print{
      position: fixed;
      top: 1%;
      right: 10%;
    }
</style>
<style>
	.list td,.list th{ height:26px; line-height:26px; text-align:center;}
	.list th{ font-weight:bold;}
    .shou span{width: 48%;float: left;text-align: left; padding-left: 10px;font-weight:bold;}
    .pageContent{
      width: 950px;
      height: 1370px;
      border: 1px #000 solid;
      overflow: hidden;
      padding: 30xp 30px 30px 30px;
    }
</style>
<body>
<div class="menu">
	<input type="button" value="打 印" onclick="window.print()"/><br><br>
</div>
<div class="pageContent">
	<table width="100%" border="0">
    <tr><td>
        <table width="100%" border="1" style="border-collapse:collapse;" class="list">
            <tr>
                <th colspan="6" style="font-size:24px; height:40px;">{:config('base.company_name')}出库单</th>
            </tr>
            <tr>
                <th style='text-align: left;padding-left: 10px' colspan="6">出库确认人：{:arrayGet($systemUserKV,ADMIN_ID)}</th>
            </tr>
            <tr>
                <th style='text-align: left;padding-left: 10px' colspan="6">出库时间：{:date('Y-m-d h:i:s',time())}</th>
            </tr>
        </table>
    </td></tr>
    {foreach $data as $key=>$value }
	<tr><td>
		<table width="100%" border="1" style="border-collapse:collapse;" class="list">
			<tr>
				<th colspan="14" style="font-size:16px; height:40px; text-align: left;padding-left: 10px">供应商：{$key}</th>
			</tr>
			<tr>
				<td>订单号</td>
				<td>材料名称</td>
				<td>颜色</td>
				<td>退货原因</td>
				<td>退货量</td>
                <td>布号</td>
                <td>退料米长</td>
            </tr>
			{foreach $value as $k=>$v }
			<tr>
				<td >{$v['client_ordernum']}</td>
				<td>{$v['mInfo']['name']}</td>
				<td>{$v['mInfo']['color']}</td>
				<td>{$v['reason']}</td>
				<td>{$v['type_num']}</td>
                <td>{$v['cloth_num']}</td>
                <td>{$v['return_length']}</td>
			</tr>
			{/foreach}
            <tr>
                <td colspan="14" class="shou" style="font-size:16px; height:40px;"><span >收货人：________________</span><span>经手人(司机/采购)：________________</span></td>
			</tr>
		</table>
	</td></tr>
    {/foreach}
	</table>
</div>
</body>
</html>